<?php
	
	include ROOTPATH .'include'. DS .'protect.php';
	include ROOTPATH .'include'. DS .'isMyQuery.php';
	include(ROOTPATH .'include'. DS .'checkUserLogin.php');
	include_once( ROOTPATH .'class'. DS .'star.class.php'); 
	include_once( ROOTPATH .'class'. DS .'mediaFile.class.php'); 
	//star.class.php
	
	$do					= getQuery('do') ;
	$id					= getId('id');
	$star				= getQuery('star');
	$media_id			= getId('media_id');
	$status				= getQuery('status');
	
	
	$mediaPassWord		= getQuery('mediaPassWord');
	$stars				= new star();
	
	$mediaFile			= new mediaFile();
	
	switch($do){
		case 'star' 				: $stars -> add($id,$star) ;
		break;
		
		
		case 'getMediaSourceList' 	: getMediaSourceList($media_id, $mediaPassWord, true ,$dataType) ;
		break;
		
		case 'delActivity' 			: delActivity($activity_id) ;
		break;
		
		case 'delFile' 				: $mediaFile -> del($id) ;
		break;
		
		case 'changeFileStatus' 	: $mediaFile -> changeStatus($id,$status) ;
		break;
		
		
		
		
		
	
	}
	           
?>